package com.jefe.hudson.service.service.base;

import com.jefe.hudson.service.service.UserPrefsLocalService;
import com.jefe.hudson.service.service.UserPrefsService;
import com.jefe.hudson.service.service.persistence.UserPrefsPersistence;

import com.liferay.portal.SystemException;
import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.service.base.PrincipalBean;
import com.liferay.portal.util.PortalUtil;


public abstract class UserPrefsServiceBaseImpl extends PrincipalBean
    implements UserPrefsService {
    @BeanReference(name = "com.jefe.hudson.service.service.UserPrefsLocalService.impl")
    protected UserPrefsLocalService userPrefsLocalService;
    @BeanReference(name = "com.jefe.hudson.service.service.UserPrefsService.impl")
    protected UserPrefsService userPrefsService;
    @BeanReference(name = "com.jefe.hudson.service.service.persistence.UserPrefsPersistence.impl")
    protected UserPrefsPersistence userPrefsPersistence;

    public UserPrefsLocalService getUserPrefsLocalService() {
        return userPrefsLocalService;
    }

    public void setUserPrefsLocalService(
        UserPrefsLocalService userPrefsLocalService) {
        this.userPrefsLocalService = userPrefsLocalService;
    }

    public UserPrefsService getUserPrefsService() {
        return userPrefsService;
    }

    public void setUserPrefsService(UserPrefsService userPrefsService) {
        this.userPrefsService = userPrefsService;
    }

    public UserPrefsPersistence getUserPrefsPersistence() {
        return userPrefsPersistence;
    }

    public void setUserPrefsPersistence(
        UserPrefsPersistence userPrefsPersistence) {
        this.userPrefsPersistence = userPrefsPersistence;
    }

    protected void runSQL(String sql) throws SystemException {
        try {
            PortalUtil.runSQL(sql);
        } catch (Exception e) {
            throw new SystemException(e);
        }
    }
}
